package hivi.vn.hivigold.objects;

import java.io.Serializable;

import org.json.JSONException;
import org.json.JSONObject;

import android.graphics.Paint.Join;

public class HistoryMaster implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String stt_rec;
	private String ngay_ct;
	private String so_ct;
	private String dien_giai;
	private Double t_tien;
	private Double t_sl;
	private String ma_nv;
	private String thoi_gian;
	
	public HistoryMaster(JSONObject json) {
		// TODO Auto-generated constructor stub
		try {
			stt_rec = json.getString("STT_REC");
			ngay_ct = json.getString("NGAY_CT");
			so_ct = json.getString("SO_CT");
			setDien_giai(json.getString("DIEN_GIAI"));
			t_sl = json.getDouble("T_SL");
			t_tien = json.getDouble("T_TIEN");
			ma_nv = json.getString("MA_NV");
			thoi_gian = json.getString("THOI_GIAN");
		} catch (JSONException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

	public String getStt_rec() {
		return stt_rec;
	}

	public void setStt_rec(String stt_rec) {
		this.stt_rec = stt_rec;
	}

	public String getNgay_ct() {
		return ngay_ct;
	}

	public void setNgay_ct(String ngay_ct) {
		this.ngay_ct = ngay_ct;
	}

	public String getSo_ct() {
		return so_ct;
	}

	public void setSo_ct(String so_ct) {
		this.so_ct = so_ct;
	}

	public Double getT_tien() {
		return t_tien;
	}

	public void setT_tien(Double t_tien) {
		this.t_tien = t_tien;
	}

	public Double getT_sl() {
		return t_sl;
	}

	public void setT_sl(Double t_sl) {
		this.t_sl = t_sl;
	}

	public String getMa_nv() {
		return ma_nv;
	}

	public void setMa_nv(String ma_nv) {
		this.ma_nv = ma_nv;
	}

	public String getThoi_gian() {
		return thoi_gian;
	}

	public void setThoi_gian(String thoi_gian) {
		this.thoi_gian = thoi_gian;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public String getDien_giai() {
		return dien_giai;
	}

	public void setDien_giai(String dien_giai) {
		this.dien_giai = dien_giai;
	}
}
